jQuery().ready(function() {
			jQuery("#save").click(function() {
						var result1 = jQuery("#formData").valid();
						if (result1) {		
							//jQuery("#dataForm").submit();	
							alert("提交成功");
							window.close();				
						}
					});
			jQuery("#reset").click(function() {
							jQuery("#formData").each(function(){ 
						       this.reset(); 
						        });
						});		
			jQuery("#formData").validate({
						rules : {"documentField1" : {required : true,maxlength : 200},
						"documentField2" : {required : true,maxlength : 200},
						"documentField3" : {required : true,maxlength : 200},
						"documentField4" : {required : true,maxlength : 200},
						"documentField5" : {required : true,maxlength : 200},
						"documentField6" : {required : true,maxlength : 200},
						"documentField8" : {required : true,maxlength : 200},
						"documentField9" : {required : true,maxlength : 200},
						"documentField10" : {required : true,maxlength : 200},						
						"filename" : {required : true,maxlength : 200},
						"filetype" : {required : true,maxlength : 200},
						"fileid" : {required : true,maxlength : 200},
						"contenttype" : {required : true,maxlength : 200},
						"isvalid" : {required : true,maxlength : 200},
						"secretgrade" : {required : true,maxlength : 200},
						"publishtime" : {required : true,maxlength : 200}
						},
						messages : {							
							"proAppro.proNo" : {noZHCN:"1"},
							"proAppro.supplierName" : {noZHCN:"1"}							
						},
						success : function(label) {
							label.html("&nbsp;").addClass("checked");
						}
					});

		});

